CC=javac
AR=jar cvf
ARFLAGS=-C build/
ARDIR=./tec/
ARNAME=montec.jar
SRC=src
BUILD=build
MAIN_DIR=recette
TEC_DIR=src/tec
MAIN=Simple.java
MAIN_TEST=LancerTests.java

default: all

all: tec simple archive

tec:
	$(CC) -d $(BUILD) $ $(TEC_DIR)/*.java

simple:	tec
	$(CC) -d $(BUILD) -cp $(BUILD) $(MAIN_DIR)/$(MAIN)

archive:
	$(AR) $(ARNAME) $(ARFLAGS) $(ARDIR)
	mv $(ARNAME) $(MAIN_DIR)/

mrproper:
	rm -rf $(BUILD)/*
	rm $(MAIN_DIR)/$(ARNAME)
